import nGui.controls.Button;
import nGui.controls.Control;
import nGui.Manager;
import nGui.controls.containers.Dialog;
import nGui.controls.containers.Tabs;

class TabbedSample
{
	public static function main()
	{
		var bs = new TabbedSample();
	}
	
	public function new()
	{
		var mng : Manager = new Manager();
		
		var button1 : Button = new Button( "A" );
		var button2 : Button = new Button( "B" );
		var button3 : Button = new Button( "C" );
		var arr : Array<Control> = new Array();
		arr.push( button1 );
		arr.push( button2 );
		arr.push( button3 );
		button1.tabTitle( "One" );
		button2.tabTitle( "Two" );
		button3.tabTitle( "Three" );
		var tabs : Tabs = new Tabs( arr );
		tabs.position = "BOTTOM";
		
		var wind : Dialog = new Dialog( tabs );
		
		wind.title = "Tabbed Sample";
		wind.show();
		
		mng.loop();
	}
}